package com.zzq.calcgame.storage;

import android.content.Context;
import android.database.sqlite.SQLiteDatabase;
import android.database.sqlite.SQLiteOpenHelper;

/**
 * Created by android on 16/9/29.
 */

public class CCOpenHelper extends SQLiteOpenHelper {

    static String DB_NAME="calcgame.db";
    static  int DB_VERSION=1;

    public CCOpenHelper(Context context){
        super(context,DB_NAME,null,DB_VERSION);
    }

    @Override
    public void onCreate(SQLiteDatabase db) {
        db.execSQL(CCDb.PaperTable.CREATE);
        db.execSQL(CCDb.QuestionTable.CREATE);
    }

    @Override
    public void onUpgrade(SQLiteDatabase db, int i, int i1) {

    }

}
